package svc

import (
	"gitee.com/zy_blue7/db-convert-api/internal/config"
	db_utils "gitee.com/zy_blue7/db-convert/db-utils"
)

type ServiceContext struct {
	Config         config.Config
	DataConConfigs []DataConConfig
	// DataConMap 数据源连接
	DataConMap map[string]db_utils.DataConvert
}
type DataConConfig struct {
	DBType     string
	DriverName string
	UserName   string
	Password   string
	Host       string
	Port       string
	Schema     string
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:     c,
		DataConMap: make(map[string]db_utils.DataConvert),
	}
}
